import request from './axios'

// 创建赛区
export function createZbaAreaReq(data: any) {
  return request({
    url: '/zhebaArea/create',
    method: 'post',
    data,
  })
}

// 获取赛区列表
export function getZbaAreaListReq(data: any) {
  return request({
    url: '/zhebaArea/findMany',
    method: 'post',
    data,
  })
}

// 编辑赛区
export function updateZbaAreaReq(data: any) {
  return request({
    url: '/zhebaArea/update',
    method: 'post',
    data,
  })
}

// 删除赛区
export function deleteZbaAreaReq(data: any) {
  return request({
    url: '/zhebaArea/delete',
    method: 'post',
    data,
  })
}

// 创建赛事类别
export function createZbaCategoryReq(data: any) {
  return request({
    url: '/zhebaCategory/create',
    method: 'post',
    data,
  })
}

// 获取赛事类别列表
export function getZbaCategoryListReq(data: any) {
  return request({
    url: '/zhebaCategory/findMany',
    method: 'post',
    data,
  })
}

// 编辑赛事类别
export function updateZbaCategoryReq(data: any) {
  return request({
    url: '/zhebaCategory/update',
    method: 'post',
    data,
  })
}

// 删除赛事类别
export function deleteZbaCategoryReq(data: any) {
  return request({
    url: '/zhebaCategory/delete',
    method: 'post',
    data,
  })
}

// 创建小组
export function createZbaGroupReq(data: any) {
  return request({
    url: '/zhebaGroup/create',
    method: 'post',
    data,
  })
}

// 获取小组列表
export function getZbaGroupListReq(data: any) {
  return request({
    url: '/zhebaGroup/findMany',
    method: 'post',
    data,
  })
}

// 编辑小组
export function updateZbaGroupReq(data: any) {
  return request({
    url: '/zhebaGroup/update',
    method: 'post',
    data,
  })
}

// 删除小组
export function deleteZbaGroupReq(data: any) {
  return request({
    url: '/zhebaGroup/delete',
    method: 'post',
    data,
  })
}

// 创建场馆
export function createZbaGymReq(data: any) {
  return request({
    url: '/zhebaGymnasium/create',
    method: 'post',
    data,
  })
}

// 获取场馆列表
export function getZbaGymListReq(data: any) {
  return request({
    url: '/zhebaGymnasium/findMany',
    method: 'post',
    data,
  })
}

// 编辑场馆
export function updateZbaGymReq(data: any) {
  return request({
    url: '/zhebaGymnasium/update',
    method: 'post',
    data,
  })
}

// 删除场馆
export function deleteZbaGymReq(data: any) {
  return request({
    url: '/zhebaGymnasium/delete',
    method: 'post',
    data,
  })
}

// 创建球队
export function createZbaTeamReq(data: any) {
  return request({
    url: '/zhebaTeam/create',
    method: 'post',
    data,
  })
}

// 获取球队列表
export function getZbaTeamListReq(data: any) {
  return request({
    url: '/zhebaTeam/findMany',
    method: 'post',
    data,
  })
}

// 编辑球队
export function updateZbaTeamReq(data: any) {
  return request({
    url: '/zhebaTeam/update',
    method: 'post',
    data,
  })
}

// 删除球队
export function deleteZbaTeamReq(data: any) {
  return request({
    url: '/zhebaTeam/delete',
    method: 'post',
    data,
  })
}

// 创建球员
export function createZbaPlayerReq(data: any) {
  return request({
    url: '/zhebaPlayer/create',
    method: 'post',
    data,
  })
}

// 获取球员列表
export function getZbaPlayerListReq(data: any) {
  return request({
    url: '/zhebaPlayer/findMany',
    method: 'post',
    data,
  })
}

// 编辑球员
export function updateZbaPlayerReq(data: any) {
  return request({
    url: '/zhebaPlayer/update',
    method: 'post',
    data,
  })
}

// 删除球员
export function deleteZbaPlayerReq(data: any) {
  return request({
    url: '/zhebaPlayer/delete',
    method: 'post',
    data,
  })
}

// 创建赛程
export function createZbaScheduleReq(data: any) {
  return request({
    url: '/zhebaSchedule/create',
    method: 'post',
    data,
  })
}

// 获取赛程列表
export function getZbaScheduleListReq(data: any) {
  return request({
    url: '/zhebaSchedule/findMany',
    method: 'post',
    data,
  })
}
export function getZbaScheduleByTimeListReq(data: any) {
  return request({
    url: '/zhebaSchedule/findManyByTime',
    method: 'post',
    data,
  })
}

// 编辑赛程
export function updateZbaScheduleReq(data: any) {
  return request({
    url: '/zhebaSchedule/update',
    method: 'post',
    data,
  })
}

// 删除赛程
export function deleteZbaScheduleReq(data: any) {
  return request({
    url: '/zhebaSchedule/delete',
    method: 'post',
    data,
  })
}

// 创建球队比分
export function createZbaTeamScoreReq(data: any) {
  return request({
    url: '/zhebaTeamScore/create',
    method: 'post',
    data,
  })
}

// 获取球队比分列表
export function getZbaTeamScoreListReq(data: any) {
  return request({
    url: '/zhebaTeamScore/findMany',
    method: 'post',
    data,
  })
}

// 编辑球队比分
export function updateZbaTeamScoreReq(data: any) {
  return request({
    url: '/zhebaTeamScore/update',
    method: 'post',
    data,
  })
}

// 删除球队比分
export function deleteZbaTeamScoreReq(data: any) {
  return request({
    url: '/zhebaTeamScore/delete',
    method: 'post',
    data,
  })
}

// 创建球队比分
export function createZbaPlayerScoreReq(data: any) {
  return request({
    url: '/zhebaPlayerScore/create',
    method: 'post',
    data,
  })
}

// 获取球队比分列表
export function getZbaPlayerScoreListReq(data: any) {
  return request({
    url: '/zhebaPlayerScore/findMany',
    method: 'post',
    data,
  })
}

// 编辑球队比分
export function updateZbaPlayerScoreReq(data: any) {
  return request({
    url: '/zhebaPlayerScore/update',
    method: 'post',
    data,
  })
}

// 删除球队比分
export function deleteZbaPlayerScoreReq(data: any) {
  return request({
    url: '/zhebaPlayerScore/delete',
    method: 'post',
    data,
  })
}
